{% extends "base.html" %}

{% block title %}Collection{% endblock %}
{% block content_title %}{{ collection.title }}{% endblock %}

{% block content %}
<article class="prose">
<a href="collections/{{collection.id}}.json">JSON</a><br/>

{{ collection.description }}

{% if collection.extent %}
  {% if collection.extent.spatial %}<br/><small>{{collection.extent.spatial}}</small> {% endif %}
  {% if collection.extent.temporal %}<br/><small>{{collection.extent.temporal}}</small>{% endif %}
{% endif %}
</article>

<ul class="menu menu-horizontal bg-base-200">
  <li class="menu-title">Links</li>
  {% for link in collection.links %}
  <li><a href="{{ link.href }}">{{ link.title }}</a> [{{link.rel}}] ({{link.type}})</li>
  {% endfor %}
</ul>

{% endblock %}
